package com.objecteffects.template.persist.api;

import java.io.Serializable;
import java.util.List;

/**
 * @author Rusty Wright
 * @param <T>
 */
public interface IGenericDao<T extends Serializable> {
    void delete(T entity);

    void deleteById(Long entityId);

    List<T> findAll();

    T findOne(Long id);

    // Class<T> getClazz();

    void save(T entity);

    T update(T entity);

    // public abstract void refresh(T entity);
}
